/*
 * @(#) excelText
 *
 * <br> Copyright:  Copyright (c) 2017
 * <br> @author caijinhuang
 * <br> 2017-12-10 14:28:58
 */

import com.xuxueli.poi.excel.ExcelImportUtil;

import org.apache.log4j.Logger;
import org.junit.Test;

import java.util.List;

import com.sunsharing.sharemeeting.entity.ExcelObject;

public class excelText {
    Logger logger = Logger.getLogger(excelText.class);

    @Test
    public void inputExcel(){
        List<Object> list = ExcelImportUtil.importExcel(ExcelObject.class,"D:\\用户信息采集表.xls");
        for(int i=0;i<list.size();i++){
            ExcelObject user = (ExcelObject) list.get(i);
            System.out.println(user.getUsername()+"|"+user.getPasswd()+"|"+user.getNickname());
        }
        System.out.println(list);
    }

    @Test
    public void stringtest(){
        logger.trace("sdf");
        logger.debug("我是logger1，debug");
        logger.info("我是logger1，info");
        logger.warn("我是logger1，warn");
        logger.error("我是logger1，error");
        logger.fatal("我是logger1，fatal");
    }
}
